package com.rui.cn.enums;

import com.baomidou.mybatisplus.enums.IEnum;

/**
 *@描述：通用 启用 禁用
 *@创建人：[zhang]
 *@类名：StateEnum
 *@时间：2018/1/14 0014-下午 16:38
 **/
public enum StateEnum implements IEnum {

    ONE(1, "启用"),
    TWO(0, "禁用");

    private int value;
    private String desc;

    StateEnum(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    public String getDesc(){
        return this.desc;
    }
}